Repository navigation
2.24.0: edit a pin's corners by hand, Hold when a track is lost, perspective for four corners, FormVFX live comps as clips - #48
Merged
Conversation
…tive for four corners, FormVFX live comps as clips Hand edits of an applied corner pin: Edit corners in the inspector's Track section shows the selected clip's pin as four grips on the preview; one dragged is written into the pin's sample on that frame (or a new sample there), so the frames either side keep their tracked corners. The pin keeps the value each moved corner replaced, so a double-click puts it back. A move that would fold or cross the corners is refused. One undo step in the window (clip.pinCorner); through project.edit, and so formcut_edit, clip.pin-corner. backend/app/pin_edit.py and frontend/src/engine/pin-edit.ts are twins, and the test runs both. When the track is lost: Stop (the default, unchanged) or Hold last position. Hold keeps the last confident homography for the twelve faint frames and every faint one after, marks them held (the store's held, the read, the confidence strip), and holds the tracker's prediction there. The setting is left out of the track's signature, so changing it keeps the frames tracked. Perspective by default for a layer drawn as one four-cornered polygon, in the engine and the workspace, keeping any explicit choice; and a per-frame refit in perspective (planar.promote) when a lower model holds under 0.6 of the points and perspective holds at least 0.2 more, marked promoted. On six synthetic screen clips with exact corners the old default was 10 to 60 px mean corner error (one lost at frame 43); the new default 0.03 to 0.30 px, nothing lost. A FormVFX live comp as a clip: a .fvxlink (formvfx.link/1) imports into the bin as a video item whose frames the renderer asks of FormVFX's Live Link (loopback only, x-formvfx-local, no proxy, no redirects, capped and bounded replies) and whose sound the mix asks for; Render and replace writes it to ProRes 4444 with PCM sound through formcut's own ffmpeg and points the project's clips at it (media.replace, one undo step). Routes that read a media file refuse a live comp by name rather than hand ffmpeg its JSON. Measured: 1769 passed and 180 skipped in the engine suite, 9 window tests in Chromium, tsc and the build clean; the new tests fail on origin/main.
…and the perspective refit mark frames, and how a FormVFX live comp is read and rendered
…rack is lost, perspective for four corners, and FormVFX live comps as clips
… the project id A .fvxlink is often a downloaded file and FormVFX opens the project it names. Its project must now be an absolute local path to a FormVFX project file: a UNC or // share, a URL scheme, a relative path, a .. segment, control characters or another kind of file is refused at import in words, and the file must be there with its links followed and checked. On each request the project is sent only as it then resolves; once moved, only the project id goes, which FormVFX matches against its open and recent projects. Project and comp ids must be FormVFX tokens. 12 new tests fail on the previous commit; tests/test_vfx_link.py 36 passed, the engine suite 1781 passed and 180 skipped, the window tests 9 passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FormCut 2.24.0 adds four changes, in one PR.
project.edit, and so the MCP server'sformcut_edit, the same edit isclip.pin-corner{clipId, t, corner, x, y}or{clipId, t, corner, reset: true}. It is listed incapabilities.backend/app/pin_edit.py) and the window (frontend/src/engine/pin-edit.ts) are twins, and a test runs both.held. Held frames show in grey in the confidence strip.promoted. In the strip this shows as a line in the accent colour along the top..fvxlink(FormVFX'sformvfx.link/1, matched to nodemode-dev/formVFXbackend/app/engine/link.pyandrouters/link.py) imports into the bin through the Import chip.GET /api/link/frame.pngwhile FormVFX runs, so preview and export stay one renderer. Its sound in the mix comes from/api/link/audio.FORMVFX_URL, then FormVFX'sengine.json, then127.0.0.1:8250), with no proxy from the environment, no redirects, and capped replies.x-formvfx-local: 1only). Its own POST render needs FormVFX's window key, which is why the render is done on FormCut's side.Version 2.24.0 is set at all eight version sites in one
chore(release)commit, as 2.23.0 was. The reasoning is inbackend/HASHOUT_LOG.mdandfrontend/HASHOUT_LOG.md.Tests
The new tests were written first and fail on
origin/main. Run against an unchanged checkout:test_pin_edit.pydoes not import (app.pin_editis missing).New tests:
tests/test_pin_edit.py: 14tests/test_planar_hold.py: 5tests/test_planar_perspective_default.py: 4tests/test_vfx_link.py: 36tests/test_pin_link_strings.py: 2frontend/tests/window/test_pin_link_controls.py: 3, in Chromium, including zero layout shift when Edit corners is turned on and offCommands run locally (macOS, Python 3.12, Node 25.8), as
.github/workflows/checks.ymlruns them, with a scratch HOME andPYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring:python -m compileall -q backend/app mcp: passes.ruff check backend/app mcp setup tests: all checks passed.ruff format --check backend/app mcp setup tests: 334 files formatted.python -m pytest tests -q: 1781 passed, 180 skipped. Node 25.8 was supplied throughFORMCUT_NODEso that the TypeScript twin test runs. It skips where Node is older than 22.6.python setup/notices.py --check: passes.python setup/output_checks.py: "exports and RPC replies are as expected".python setup/skill_maps.py --check: passes, with the maps regenerated../formcut agents sync --check: "in step". No MCP tool changed.python setup/golden_frames.py: on this Mac, preview and export agree (worst mean difference 1.474). The pixel hashes of the text frames differ from the golden ones.origin/maingives byte-identical output on the same Mac, so the difference is the font stack: the hashes are pinned to Linux, which CI runs.npm audit --audit-level=low: 0 vulnerabilities.npx tsc --noEmit: clean.npm run build: built.python -m pytest frontend/tests/window -q: 9 passed. These are the F7 smoke, the review controls and the 3 new tests.cargo fmt --check: clean.cargo check: finished.A screen benchmark (six synthetic 1280x720 clips with exact corner truth, FormCut's runner pointed at this tree) gave the following mean and max corner error in px. The old default was Perspective off.
For the owner
perspective: falseexplicitly, so they keep their old behaviour until the box is ticked.gbarnai <[email protected]>, as asked for this task.CLAUDE.mdsays every commit isnodemode-ai <[email protected]>. Rewrite them on merge if that rule should hold.Left for the owner (not changed here)
.fvxlinkyet; an agent can callPOST /api/vfx-link/import..fvxlinkis often a downloaded file, and FormVFX opens the project it names..fvxproj,.ecproj,.ecprojx), with symlinks resolved and the target checked the same way. A UNC or//share, a URL scheme (smb:,file:), a relative path, a..segment, control characters or any other kind of file is refused at import with a plain sentence..fvxlinkitem comes back only from its own record inmedia-records/.How to ship
main. The checks must pass.RELEASING.md:python setup/preflight.py.main:refs/heads/compile_v2.24.0for nodemode-dev/formcompiler.